
import service from './request'
//添加教学周期
export function addTeachingTime(data) {
    data.no_class_date=JSON.stringify(data.no_class_date)
    data.morning_class_date=JSON.stringify(data.morning_class_date)
    data.afternoon_class_date=JSON.stringify(data.afternoon_class_date)
    return service.post('/teachingtimes',data)
}
//修改教学周期
export function editTeachingTime(data) {
    return service.put('/teachingtimes/'+data.id,data)
}
//不分页的教学周期
export function getTeachingCycle(queryinfo) {  
    let url = queryinfo ? '/teaching_cycles?queryinfo='+queryinfo : '/teaching_cycles' 
    return service.get(url)
}
//教学周期列表
export function getTeachingTime() {
    return service.get('/teachingtimes')
}